package com.haima.ziliao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.haima.ziliao.mapper.PKongxianMapper;
import com.haima.ziliao.domain.PKongxian;
import com.haima.ziliao.service.IPKongxianService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 空闲时间Service业务层处理
 * 
 * @author hima
 * @date 2024-12-10
 */
@Service
public class PKongxianServiceImpl extends ServiceImpl<PKongxianMapper, PKongxian> implements IPKongxianService
{
    @Autowired
    private PKongxianMapper pKongxianMapper;

    /**
     * 查询空闲时间
     * 
     * @param id 空闲时间主键
     * @return 空闲时间
     */
    @Override
    public PKongxian selectPKongxianById(Long id)
    {
        return pKongxianMapper.selectPKongxianById(id);
    }

    /**
     * 查询空闲时间列表
     * 
     * @param pKongxian 空闲时间
     * @return 空闲时间
     */
    @Override
    public List<PKongxian> selectPKongxianList(PKongxian pKongxian)
    {
        return pKongxianMapper.selectPKongxianList(pKongxian);
    }

    /**
     * 新增空闲时间
     * 
     * @param pKongxian 空闲时间
     * @return 结果
     */
    @Override
    public int insertPKongxian(PKongxian pKongxian)
    {
        return pKongxianMapper.insertPKongxian(pKongxian);
    }

    /**
     * 修改空闲时间
     * 
     * @param pKongxian 空闲时间
     * @return 结果
     */
    @Override
    public int updatePKongxian(PKongxian pKongxian)
    {
        return pKongxianMapper.updatePKongxian(pKongxian);
    }

    /**
     * 批量删除空闲时间
     * 
     * @param ids 需要删除的空闲时间主键
     * @return 结果
     */
    @Override
    public int deletePKongxianByIds(Long[] ids)
    {
        return pKongxianMapper.deletePKongxianByIds(ids);
    }

    /**
     * 删除空闲时间信息
     * 
     * @param id 空闲时间主键
     * @return 结果
     */
    @Override
    public int deletePKongxianById(Long id)
    {
        return pKongxianMapper.deletePKongxianById(id);
    }
}
